local skel = fk.CreateSkill {
  name = "emo__qidian",
  tags = {Skill.Wake},
}

skel:addEffect(fk.EventPhaseStart, {
  can_trigger = function (self, event, target, player, data)
    if player:hasSkill(skel.name) and target == player and player:usedSkillTimes(skel.name, Player.HistoryGame) == 0 then
      return player.phase == Player.Start
    end
  end,
  can_wake = function (self, event, target, player, data)
    return #player:getPile("emo__dayin") > 3
  end,
  on_cost = Util.TrueFunc,
  on_use = function (self, event, target, player, data)
    local room = player.room
    room:recastCard(player:getPile("emo__dayin"), player, skel.name)
    if not player.dead then
      room:addPlayerMark(player, "@emo__sucaidian", 5)
    end
  end,
})


Fk:loadTranslationTable{
  ["emo__qidian"] = "奇点",
  [":emo__qidian"] = "觉醒技，准备阶段，若你武将牌上有至多四张“打印”牌，你重铸之并获得5点素材点。然后修改打印。",
}

return skel
